<?php 


/** 
***************************************************
*欢迎使用免费版xSite企业自助建站软件！
*这是一个专业为搜索引擎营销而设计的，极稳定、极易维护的建站软件！
*官方客服：help@php.net.cn
*官方下载网址：http://www.php.net.cn/xsite/ 
***************************************************
**/



  header("Cache-Control: no-cache, must-revalidate"); header("Content-type: text/html;charset=utf-8"); require_once "m.inc.php"; require_once "s.inc.php"; ?>
<!DOCTYPE HTML>
<html class="news">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>内容搜索</title>
<base target="_self">
<script>var ENV_MONITOR={},WPO={};WPO.data={dcl:[+(new Date)]}</script><script>var $pro='m_news',$pid='result',$src='srp';</script>
<style>
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
	border:0;
	font-size:100%;
	margin:0;
	padding:0;
	vertical-align:baseline
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
	display:block
}
ol, ul {
	list-style:none
}
blockquote, q {
	quotes:none
}
table {
	border-collapse:collapse;
	border-spacing:0
}
html, body, form, input, span, p, button, h3 {
	border:0;
	margin:0;
	padding:0
}
body {
	background:#FAFAFA;
	color:#333;
	font-size:14px;
	font-family:'Microsoft YaHei', Hei, arial, sans-serif;
	text-align:center
}
blockquote:before, blockquote:after, q:before, q:after {
	content:none
}
a, a:visited {
	color:#1A62D8;
	text-decoration:none
}
footer {
	margin:5px 0 14px
}
footer a {
	color:#1A62D8;
	height:20px;
	line-height:20px
}
.fill-all {
	-webkit-box-flex:1
}
.search-box {
	border-bottom:1px solid #d7d7d7
}
.search-box-reset {
	background:url(./skin/close_key.png) no-repeat scroll center center transparent;
	-webkit-background-size:19px 19px;
	bottom:0;
	display:none;
	height:100%;
	position:absolute;
	right:6px;
	top:0;
	width:19px
}
.search-form-container {
	-webkit-box-flex:1;
	height:49px;
	padding:7px 12px 0;
	position:relative;
	z-index:1
}
.search-form {
	border:2px solid #3eaf1e;
	-webkit-box-align:stretch;
	-webkit-box-pack:center;
	-webkit-box-sizing:border-box;
	display:-webkit-box
}
.input-container {
	background:white;
	-webkit-box-flex:1;
	height:38px;
	position:relative
}
.q {
	-webkit-appearance:none;
	-moz-appearance:none;
	border-radius:0;
	-webkit-border-radius:0;
	-moz-border-radius:0;
	-webkit-box-shadow:inset 0 1px 2px 0 rgba(0, 0, 0, .22);
	-webkit-box-sizing:border-box;
	font-size:18px;
	height:38px;
	line-height:24px;
	padding:4px 30px 4px 6px;
	width:100%
}
.search-button {
	-webkit-appearance:none;
	-moz-appearance:none;
	background:url('skin/t01096c583f56ee2d8b.png') no-repeat scroll center center, -webkit-gradient(linear, left top, left bottom, from(#85e856), to(#63c437));
	background-size:50% 50%, auto;
	border-left:2px solid #3eaf1e;
	border-radius:0;
	-webkit-border-radius:0;
	-moz-border-radius:0;
	-webkit-box-shadow:inset 0 1px 0 0 #67f923;
	display:block;
	height:38px;
	width:38px
}
.nav {
	background:#f7f7f7;
	border-bottom:1px solid #c5c5c5;
	display:-webkit-box;
	height:40px;
	padding-right:10px
}
.more-list {
	background:-webkit-gradient(linear, 0 0, 0 5, from(#d1d1d1), to(#e6e6e6));
	border-bottom:1px solid #d7d7d7;
	display:none;
	height:65px
}
.res-list {
	border-bottom:1px solid #e4e4e4;
	padding-bottom:3px
}
.suggest-container, .suggest-container * {
	-webkit-tap-highlight-color:rgba(0, 0, 0, 0)
}
.suggest-container {
	background:white;
	border:1px solid #bbb;
	border-top:0;
	display:none;
	position:relative;
	z-index:9
}
.suggest-item, .suggest-toolbar {
	-webkit-box-align:stretch;
	-webkit-box-pack:start;
	display:-webkit-box;
	line-height:22px
}
.suggest-toolbar {
	background-color:#f8f8f8;
	-webkit-box-pack:end;
	color:#969696
}
.suggest-item-title {
	-webkit-appearance:none;
	background:none transparent;
	border:none;
	border-bottom:1px solid #bbb;
	-webkit-box-flex:1;
	color:#333;
	display:block;
	font-size:16px;
	font-family:'microsoft yahei', hei, arial, sans-serif;
	line-height:28px;
	padding-left:8px;
	text-align:left
}
.suggest-item-add {
	background:url('skin/t0129eae3267053f012.png') no-repeat scroll center center white;
	background-size:13px 11px;
	border-bottom:1px solid #bbb;
	display:block;
	width:52px
}
.fill-all {
	-webkit-box-flex:1
}
.suggest-clearhistory {
	border-right:1px solid #bbb;
	display:none;
	line-height:32px;
	width:107px
}
.suggest-close {
	border-left:1px solid #bbb;
	font-size:16px;
	line-height:32px;
	padding:0 12px;
	text-align:center;
	width:55px
}
header .search-box {
	background:#efefef
}
.nav ul {
	-webkit-box-flex:1;
	display:-webkit-box;
	list-style:none
}
.nav ul, .nav li {
	margin:0;
	padding:0
}
.nav li {
	-webkit-box-flex:1;
	height:40px;
	text-align:center
}
.more-list ul {
	-webkit-box-flex:1;
	display:-webkit-box;
	list-style:none;
	margin:0;
	padding:0
}
.res-list a, .res-list .title {
	text-decoration:underline
}
.res-list em, .res-list b {
	color:#DA142B
}
.res-list>a {
	color:#333;
	display:block;
	text-decoration:none
}
.nav li span, .nav li a {
	border-bottom:2px solid #f7f7f7;
	color:#4a4a4a;
	display:block;
	height:20px;
	line-height:20px;
	margin:0 5px;
	padding:9px 0;
	text-decoration:none;
	white-space:nowrap
}
.nav li span {
	border-bottom:2px solid #3eaf1e;
	color:#36b711
}
.nav li a {
	color:#4a4a4a
}
.more-list ul li {
	-webkit-box-flex:1;
	height:65px;
	margin:0;
	padding:0;
	text-align:center
}
.more-list ul li img {
	display:block;
	height:22px;
	margin:0 auto 4px
}
.more-list ul li a, .more-list ul li p {
	color:#585858;
	display:block;
	font-size:10px;
	height:53px;
	padding-top:12px;
	text-decoration:none
}
.nav .logo {
	padding:9px 0 0 11px
}
.show-more .more-list {
	display:block
}
.res-list .title {
	color:#045AEA;
	display:inline-block;
	font-size:16px;
	line-height:22px;
	padding:8px 0 4px;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
	width:100%
}
.res-list .detail {
	display:-webkit-box;
	line-height:20px
}
.res-list .photo {
	height:75px;
	margin-right:9px;
	width:75px
}
.res-list .content {
	-webkit-box-flex:1
}
.res-list .summary {
	max-height:60px;
	overflow:hidden
}
.res-list .info {
	color:#b4b5b5;
	height:22px;
	line-height:22px;
	padding:4px 0
}
.res-list .info-source {
	margin-right:1em
}
.suggest-item-title .match {
	color:#afafaf
}
.suggest-item-add.touched {
	background-color:#f4f4f4
}
.suggest-history .suggest-clearhistory {
	display:block
}
.suggest-close.touched {
	background-color:#d6fdc4
}
.res-list .title em, .res-list .title b {
	text-decoration:underline
}
.res-list .photo img {
	max-height:75px;
	max-width:75px
}
.res-list.has-photo .detail {
	padding-bottom:30px;
	position:relative
}
.res-list.has-photo .info {
	bottom:0;
	left:0;
	position:absolute
}
.res-list.has-photo .summary {
	max-height:80px
}
.focusing:not(.empty) .search-box-reset, .focusing:not(.empty) .search-box-reset {
display:block
}
#arr-more {
	margin-left:5px;
	vertical-align:middle;
	width:10px
}
#main {
	margin:2px 12px 0;
	text-align:left
}
#pagination {
	-webkit-box-align:stretch;
	-webkit-box-pack:center;
	color:#1A62D8;
	display:-webkit-box;
	font-size:18px;
	height:57px;
	line-height:57px;
	padding:0 36px
}
#related-search {
	background:#F0F0F0;
	border-top:1px solid #DCDCDC;
	border-bottom:1px solid #DCDCDC;
	display:none;
	margin-bottom:6px;
	padding:9px 12px 3px;
	text-align:left
}
#pagination a {
	background:-webkit-gradient(linear, left top, left bottom, from(#F9F9F9), to(#EEE));
	border:1px solid #B6B6B6;
	-webkit-border-radius:4px;
	-webkit-box-shadow:inset 0 1px 0 0 #FFF, 0 1px 3px 0 rgba(128, 128, 128, .17);
	display:inline-block;
	height:31px;
	line-height:31px;
	text-align:center;
	width:76px
}
#related-search h3 {
	color:#333;
	font-size:16px;
	height:27px;
	line-height:27px
}
#related-search a {
	display:inline-block;
	height:36px;
	line-height:36px;
	overflow:hidden;
	width:140px
}
#related-search a, #related-search a:visited {
	color:#1A62D8
}
#header .search-box {
	background:#efefef
}
#header .search-form-container {
	background:-webkit-gradient(linear, 0 0, 0 5, from(#d9d9d9), to(#efefef))
}
#arr-more.up {
	-webkit-transform:rotate(180deg)
}
#header .show-more .search-form-container {
	background:-webkit-gradient(linear, 0 0, 0 1, from(#fff), to(#efefef))
}
</style>
<style>
.suggest-container,.suggest-container* {
	-webkit-tap-highlight-color:rgba(0,0,0,0)
}
.suggest-container {
	display:none;
	position:relative;
	border:1px solid #bbb;
	border-top:0;
	z-index:99;
	background:#fff;
}
.suggest-item,.suggest-toolbar {
	display:-webkit-box;
	line-height:22px;
	-webkit-box-pack:start;
	-webkit-box-align:stretch
}
.suggest-item {
	}.suggest-toolbar {
	-webkit-box-pack:end;
	color:#969696;
	background-color:#f8f8f8
}
.suggest-item-title {
	display:block;
	color:#333;
	font-size:16px;
	font-family:'microsoft yahei',hei,arial,sans-serif;
	padding-left:8px;
	-webkit-box-flex:1;
	background:none transparent;
	-webkit-appearance:none;
	text-align:left;
	border:none;
	border-bottom:1px solid #ddd;
	line-height:36px
}
.suggest-item-add {
	border-bottom:1px solid #ddd;
	display:block;
	width:52px;
	background:white url('skin/t0129eae3267053f012.png') no-repeat center center;
	background-size:13px 11px
}
.suggest-item-title .match {
	color:#afafaf
}
.fill-all {
	-webkit-box-flex:1
}
.suggest-item-title.touched {
	}.suggest-item-add.touched {
	background-color:#f4f4f4
}
.suggest-clearhistory {
	display:none;
	width:107px;
	border-right:1px solid #ddd;
	line-height:32px
}
.suggest-history .suggest-clearhistory {
	display:block
}
.suggest-close {
	line-height:32px;
	text-align:center;
	padding:0 12px;
	font-size:16px;
	width:55px;
	border-left:1px solid #ddd
}
.suggest-close.touched {
	background-color:#d6fdc4
}
.focusing:not(.empty) .search-box-reset {
	display:block;
}
.focusing:not(.empty) .search-box-reset {
	display:block;
}
.flex1 {
	-webkit-box-flex:1;
}
</style>
</head>
<body>
<style>
.header {
	background-color:#EEE;
	border-bottom:1px solid #D0D0D0;
	display:block;
	font-family:arial;
	font-size:15px
}
.tabList,.searchBox {
	border-top:1px solid #D0D0D0;
	box-shadow:inset 0 0 1px rgba(0,0,0,0.15);
	overflow:hidden
}
.tabList {
	display:none
}
.searchBox {
	padding:10px
}
.tabList a {
	color:#333;
	float:left;
	height:45px;
	line-height:45px;
	text-align:center;
	text-decoration:none;
	width:20%
}
.ios .noIos {
	display:none
}
.header .top {
	background-color:#FAFAFA;
	height:40px
}
.header .icon {
	background:url(skin/icons.png) no-repeat;
	background-size:150px 112px;
	border-right:1px solid #D5D5D5;
	float:left;
	height:100%;
	width:50px
}
.header .toSoIndex {
	background-position:-49px 11px
}
.header .moreTabs {
	background-position:-116px 11px
}
.header .search {
	background-position:16px 11px
}
.header .noPic,.header .search {
	border-left:1px solid #D5D5D5;
	border-right:none;
	float:right
}
.header .noPic {
	background:none;
	color:#fff;
	line-height:40px;
	text-align:center
}
.header .logo,.searchBox .con,.header .logo a {
	height:100%
}
.searchBox .con {
	background-color:#fff;
	border:1px solid #D0D0D0;
	padding:5px 50px 5px 5px;
	position:relative
}
.searchBox .keyWords {
	border:none;
	border-right:1px solid #D4D4D4;
	border-radius:0;
	font-size:15px;
	height:28px;
	outline:none;
	padding:0;
	width:100%
}
.searchBox .searchBn {
	background-position:18px 10px;
	border:none;
	height:40px;
	padding:0;
	position:absolute;
	right:0;
	top:0;
	width:50px
}
.header .icon a {
	display:block;
	height:100%;
	width:100%
}
.header .logo a {
	display:block;
	margin:0 auto;
	text-align:center;
	width:112px
}
.header .logo img {
	height:16px;
	margin-top:12px
}
.header .icon.active {
	background-color:#eee
}
.header .toSoIndex.active {
	background-position:-49px -36px
}
.header .moreTabs.active {
	background-position:-116px -36px
}
.header .search.active {
	background-position:16px -36px
}
.header.news .top {
	background-color:#45B952
}
.header.news .icon {
	border-color:#3B9E47
}
.header .logo.new a::before {
	background-color:#FF2400;
	border-radius:50%;
	border:1px solid #fff;
	box-shadow:0 1px 1px #777;
	content:'';
	float:right;
	height:4px;
	margin:5px 0 0 -5px;
	width:4px
}
.header.news .icon.active {
	background-color:#3A9C45
}
.header.news .toSoIndex,.header.news .toSoIndex.active {
	background-position:-49px -83px
}
.header.news .moreTabs,.header.news .moreTabs.active {
	background-position:-116px -83px
}
.header.news .search,.header.news .search.active {
	background-position:16px -83px
}
.header .clear {
	background-color:#fff;
	color:#9c9c9c;
	display:none;
	font-size:30px;
	height:100%;
	line-height:38px;
	position:absolute;
	right:52px;
	text-align:center;
	-webkit-text-size-adjust:none;
	top:0;
	width:30px
}
</style>
<header class="header news">
  <div class="top"> <span class="toSoIndex icon"><a href="http://<?=_e("{$site_url}{$site_path}/m/")?>"></a></span> <span class="moreTabs icon"></span>
    <h1 class="logo"><a href="http://<?=_e("{$site_url}{$site_path}/m/")?>"><img src="<?=SITE_PATH . '/' . @thumb(_e($mobi_logofile, "m/skin/mobi_logo.png"), 186, 32)?>"></a></h1>
  </div>
  <div style="display: none;" class="tabList"> 
    <?php if(is_array($cat_links) && count($cat_links)) {?>
        <?php foreach($cat_links as $k => $v) {?>
         	<a href="<?=$v['href']?>" data-search="<?=$v['href']?>"><?=@str_sub(_e($v['name'], "名称"), 4, '')?></a> 
        <?php }?>
    <?php }?>
  </div>
  <div class="searchBox">
    <form class="searchForm" action="search.php">
      <div class="con">
        <input name="q" class="keyWords" autocomplete="off" id="q" value="<?=$keywords?>" type="text">
        <input value="" class="searchBn icon" type="submit">
        <span style="display: block;" class="clear">×</span></div>
    </form>
    <div style="display: none;" class="suggest-container">
      <div class="suggest-content"></div>
      <div class="suggest-toolbar">
        <div class="suggest-clearhistory">清除历史记录</div>
        <div class="fill-all"></div>
        <div class="suggest-close">关闭</div>
      </div>
    </div>
  </div>
</header>
<script>
    (function() {
        function a(e) {
            var t = new RegExp("(?:;)?" + encodeURIComponent(e) + "=([^;]*);?");
            return t.test(document.cookie) ? decodeURIComponent(RegExp.$1) : null
        }
        function f(e, t, n, r, i) {
            n && !isNaN(n) && (n = new Date((new Date).getTime() + n)),
            document.cookie = e + "=" + escape(t) + (n ? "; expires=" + n.toGMTString() : "") + (r ? "; path=" + r: "; path=/") + (i ? ";domain=" + i: "")
        } ! navigator.userAgent.match(/(i[^;]+\;(U;)? CPU.+Mac OS X)/) || document.body.classList.add("ios"),
        a("_notNew") || (f("_notNew", 1, 31536e6), document.referrer.indexOf("<?=_e("{$site_url}{$site_path}")?>") >= 0 && document.querySelector("h1.logo").classList.add("new"));
        var e = document.querySelectorAll(".header a[data-search]"),
        t = document.getElementById("q");
        for (var n = e.length - 1; n >= 0; n--) e[n].addEventListener("click",
        function(e) {
            if (t.value != "") {
                var n = this.getAttribute("data-search");
                n && (this.href = n + encodeURIComponent(t.value))
            }
            e.stopPropagation()
        },
        !1);
        var r = document.querySelector(".header .tabList"),
        i = document.querySelector(".header .searchBox"),
        s = document.querySelector(".header .moreTabs"),
        o = document.querySelector(".header .clear"),
        u = 0;
        s.addEventListener("click",
        function() { (u ^= 1) ? (this.className = "moreTabs icon active", r.style.display = "block") : (this.className = "moreTabs icon", r.style.display = "none")
        },
        !1),
        t.value && (o.style.display = "block")
    })()
</script>

<div id="main">
	
  <?php $i = 1;?>
  <?php if(is_array($json) && count($json) ) { ?>
  		<?php foreach ($json as $k => $v) { ?>
  <div class="res-list has-photo" data-index="<?=$i?>"> <a href="http://<?=_e("{$site_url}{$site_path}/m/ns.php?u=". urlencode("category={$v['c']}&key={$v['id']}") )?>"> <span class="title"><?=$v['t']?></span>
    <div class="detail">
      <?php if (!empty($v['i']) ) {?><p class="photo"><img src="<?=SITE_PATH . '/' . @thumb($v['i'], 75, 75)?>"></p> <?php }?>
      <div class="content">
        <p class="summary"><?=str_sub($v['s'], 110, '…')?></p>
        <div class="info"> <!--<span class="info-source">编辑:&nbsp;本站管理员</span> -->
          <time class="info-publush-date">编辑时间： <?=$v['p']?></time>
        </div>
      </div>
    </div>
    </a></div>
   		<?php $i++; }?>
   <?php }else{ ?>
   <style type="text/css">
	#no-result-tips {
		line-height:24px;
		margin-top:8px
	}
	#no-result-tips em {
		color:#C00;
		font-style:normal
	}
   </style>
   <div id="no-result-tips">
    <p>抱歉，未找到和 <span>"</span><em style="color:#c00;font-style:normal"><?=$keywords?></em><span>"</span>相关的内容。</p>
    <strong>建议您：</strong>
    <ul>
      <li>1、检查输入查询词是否正确。
      <li>2、你可以联系本站客服。
    </ul>
  </div>
   <?php }?> 
	<!--  
  <div id="pagination">
    <div id="previous-page"><a href="/ns?q=so.com&amp;pn=1&amp;src=srp">上一页</a></div>
    <div class="fill-all"></div>
    <div id="next-page"><a href="/ns?q=seo&amp;pn=2&amp;src=srp">下一页</a></div>
  </div> 
  -->
  
</div>

<!--<div id="related-search">
  <h3>相关搜索</h3>
  <p style="display: block;" id="js-related">
  	<a href="search.php" data-t="0" data-index="0"><?=$keywords?></a>
    </p>
</div> -->

<script>
    function htmlEscape(e) {
        var t = {
            "<": "&lt;",
            ">": "&gt;",
            "'": "&#39;",
            '"': "&quot;",
            "&": "&amp;"
        };
        return e.replace(/(<|>|'|"|&)/g,
        function(e, n) {
            return t[n] ? t[n] : n
        })
    }
    function rs_callback(e) {
        var t = document.getElementById("js-related"),
        n = "";
        for (var r = 0,
        i = e.length; r < i; r++) n += '<a href="search.php?q=' + encodeURIComponent(e[r].q) + "&amp;src=" + $src + '" data-t="' + e[r].t + '" data-index="' + r + '">' + e[r].q + "</a>";
        n && (t.innerHTML = n, document.getElementById("js-related").style.display = "block")
    }
</script> 

</script>
<div class="search-box">
  <div class="shadow"></div>
  <div class="search-form-container">
    <form class="search-form" action="search.php">
      <div class="input-container">
        <input name="q" class="q" value="<?=$keywords?>" autocomplete="off" x-webkit-speech="">
        <input name="src" value="srp" type="hidden">
        <div style="display: none;" class="search-box-reset"></div>
      </div>
      <input class="search-button" value="" type="submit">
    </form>
  </div>
</div>
<footer> <a href="http://<?=_e("{$site_url}{$site_path}/m/")?>/">手机搜索</a> </footer>
<script>
    WPO.data.dcl.push( + (new Date))
</script> 
<script>
    document.addEventListener("DOMContentLoaded",
    function() {
        window.scrollTo(0, 1)
    },
    !1),
    function() {
        function e(e) {
            return document.getElementById(e)
        }
        function t(e) {
            return document.getElementsByClassName(e)
        }
        var n = e("q"),
        r = t("q"),
        i = t("search-box-reset");
        setInterval(function() {
            for (var e = r.length - 1; e >= 0; e--) r[e].value != "" ? i[e].style.display = "block": i[e].style.display = "none"
        },
        50);
        for (var s = r.length - 1; s >= 0; s--)(function(e) {
            i[e].addEventListener("click",
            function(t) {
                r[e].value = "",
                r[e].focus(),
                t.preventDefault(),
                t.stopPropagation()
            },
            !1)
        })(s)
    } ()
</script> 

<script src="skin/zepto.js">
</script> 


</body>
</html>